<template>
	<view>
		<view v-for="(item,index) in list" :key="index">
			<navigator hover-class="none" :url="`/jvss/pageCloud/order/orderDetails?orderId=${item.orderId}`">
				<view class="cu-list menu orderDetail">
					<view class="cu-item bg-white">
						<!-- 图片 -->
						<view v-if="item.icon" class="cu-avatar lg" style="background-color: white;" :style="{backgroundImage:'url('+item.icon+')'}">
						</view>
						<view v-else class="cu-avatar radius lg testOrder_imgNull"></view>
						<!-- 文本 -->
						<view class="content" style="padding-left:10upx">
							<view class="text-grey line-limit-one-length" style="padding-left:10upx;">
								<text v-if="item.channel!=null">
									<text v-if="item.channel===-1"></text>
									<text v-else>[{{item.channel+1}}通道]</text>
								</text>
								{{item.classifyName}}
							</view>
							<view class="text-primary text-sm line-limit-one-length"><text
									class="text-red  margin-right-xs"></text>{{item.goodsName}}</view>
						</view>
						<!-- 价格信息 -->
						<view class="listRContent">
							<view v-if="item.discount&&parseInt(item.discount)!=0" class="text-grey text-xs text-right">
								-&nbsp;{{item.discount}}</view>
							<view class="text-red text-md text-right">{{item.currencyUnit}}{{item.price}}</view>
						</view>
					</view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
  export default {
    props:{
      list:{
        type:Array,
        default:()=>{
          return []
        }
      }
    },
    data() {
      return {

      }
    },
    onLoad(opt) {

    },
    onShow() {

    },
    methods: {

    }
  }
</script>

<style lang="less" scope>
@import '@/common/style/main.css';
	
</style>
